projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38fb80
)
libotutil: Fix a possible uninitialized free() in error path
author
Colin Walters
<walters@verbum.org>
Sat, 18 Jan 2014 09:52:45 +0000
(
04:52
-0500)
committer
Colin Walters
<walters@verbum.org>
Sat, 18 Jan 2014 09:52:45 +0000
(
04:52
-0500)
Spotted by gcc.
src/libotutil/ot-keyfile-utils.c
patch
|
blob
|
history
diff --git
a/src/libotutil/ot-keyfile-utils.c
b/src/libotutil/ot-keyfile-utils.c
index f7d8cc1db909677deae30faebd19cf2f36434a00..833a76f636acaceeb71ba0ce7aabcff3cfed6581 100644
(file)
--- a/
src/libotutil/ot-keyfile-utils.c
+++ b/
src/libotutil/ot-keyfile-utils.c
@@
-69,7
+69,7
@@
ot_keyfile_get_value_with_default (GKeyFile *keyfile,
{
gboolean ret = FALSE;
GError *temp_error = NULL;
- gs_free char *ret_value;
+ gs_free char *ret_value
= NULL
;
ret_value = g_key_file_get_value (keyfile, section, value, &temp_error);
if (temp_error)